//
//  UIView+Externsion.h
//  SinaCar
//
//  Created by Buddha on 15/12/2.
//  Copyright © 2015年 sina.com. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <objc/runtime.h>

@interface UIView (Externsion)
// 一圈 阴影
- (void)setCornerRadius:(CGFloat)radius withShadow:(BOOL)shadow withOpacity:(CGFloat)opacity;


@property (nonatomic, assign) CGFloat x;
@property (nonatomic, assign) CGFloat y;
@property (nonatomic, assign) CGFloat centerX;
@property (nonatomic, assign) CGFloat centerY;
@property (nonatomic, assign) CGFloat width;
@property (nonatomic, assign) CGFloat height;
@property (nonatomic, assign) CGSize size;


@property (nonatomic, assign)CGFloat top;
@property (nonatomic, assign)CGFloat left;

@property (nonatomic, assign)CGFloat bottom;
@property (nonatomic, assign)CGFloat right;

@property(nonatomic,copy)NSString *strId;

- (UIViewController *)getVC;
- (UIView*)subViewOfClassName:(NSString*)className;

- (UIImage*) changeImage;

@end
